import request from "@/utils/request";
export function insertRoleFunction(data) {
  return request({
    url: "/role-function/insert",
    method: "post",
    data: data
  });
}
export function updateRoleFunction(data) {
  return request({
    url: "/role-function/update",
    method: "post",
    data: data
  });
}
export function deleteRoleFunction(data) {
  return request({
    url: "/role-function/delete",
    method: "post",
    data: data
  });
}
export function deletesRoleFunction(data) {
  return request({
    url: "/role-function/deletes",
    method: "post",
    data: data
  });
}
export function enableRoleFunction(data) {
  return request({
    url: "/role-function/enable",
    method: "post",
    data: data
  });
}
export function enablesRoleFunction(data) {
  return request({
    url: "/role-function/enables",
    method: "post",
    data: data
  });
}
export function disableRoleFunction(data) {
  return request({
    url: "/role-function/disable",
    method: "post",
    data: data
  });
}
export function disablesRoleFunction(data) {
  return request({
    url: "/role-function/disables",
    method: "post",
    data: data
  });
}
export function viewRoleFunction(params) {
  return request({
    url: "/role-function/view",
    method: "get",
    params: params
  });
}
export function pageRoleFunction(params) {
  return request({
    url: "/role-function/page",
    method: "get",
    params: params
  });
}
export function searchRoleFunction(params) {
  return request({
    url: "/role-function/search",
    method: "get",
    params: params
  });
}
